package com.atguigu.day211105.work;

public class Pet {
    private String type;
    private String name;
    private double weight;

    public Pet() {
    }

    public Pet(String type, String name, double weight) {
        this.type = type;
        this.name = name;
        this.weight = weight;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getWeight() {
        return weight;
    }

    public void setWeight(double weight) {
        this.weight = weight;
    }
    public void eat(){
        System.out.println("吃");
    }
    public String getInfo(){
        return "类型:"+type+",名字:"+name+",重量:"+weight;
    }
}
